rpi3: sdhost: SDHost driver improvement
authorYing-Chun Liu (PaulLiu) <[email protected]>
Tue, 12 Feb 2019 14:41:06 +0000 (22:41 +0800)
committerYing-Chun Liu (PaulLiu) <[email protected]>
Tue, 26 Feb 2019 17:06:57 +0000 (01:06 +0800)
commit2c8ef2ae6b8103da5b6b82b2252877d61c2522bf
treebea32a4d9767a86df3e41b09ee0ad36055f8aabe
parentab3d22473df279c61ed4d4873d26b072dcf887e8
rpi3: sdhost: SDHost driver improvement

This commit improves the SDHost driver for RPi3 as following:
 * Unblock MMC_CMD(17). Using MMC_CMD(17) is more efficient on
   block reading.
 * In some low probability that SEND_OP_COND might results CRC7
   error. We can consider that the command runs correctly. We don't
   need to retry this command so removing the code for retry.
 * Using MMC_BUS_WIDTH_1 as MMC default value to improve the stability.
 * Increase the clock to 50Mhz in data mode to speed up the io.
 * Change the pull resistors configuration to gain more stability.

Signed-off-by: Ying-Chun Liu (PaulLiu) <[email protected]>
drivers/rpi3/sdhost/rpi3_sdhost.c
include/drivers/rpi3/sdhost/rpi3_sdhost.h
plat/rpi3/rpi3_bl2_setup.c